Repository navigation
Conversation
Properties for the D-Bus body codec, 3GPP location strings, cell info, ModemManager observation normalization, the router (HiLink, goform, HIMI) signal parsers, mmcli SMS output, NMEA and the small text parsers: nothing throws on arbitrary input, accepted values keep their bounds and round-trip. bun test runs 300 cases each; FUZZ_SECONDS gives every property a time budget for longer runs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The parsers that take data from a modem ("ModemManager over D-Bus"), a router admin API or
mmcliare covered by fixtures, so I could not tell what a malformed or hostile reply does to them. This adds fast-check properties that throw generated input at them./proc/net/dev, udev,usb-devices, versions).bun testruns 300 cases per property.bun run --cwd control fuzzgives every property 8 seconds with the case count lifted.fast-checkis a dev dependency ofcontrolonly; the published tarball is unchanged (verify:tarballpasses).The AT and MBIM framing is ModemManager's, so there is no AT or MBIM response parser in this repository to test; the properties cover what this repository does with the decoded D-Bus data and the router and CLI text it parses itself.
Results of my runs
One 8 second-per-property run (31 properties, about 4 minutes) did 67.4M cases with no failure. The same properties, once their generators were widened, found the four problems fixed in the PRs stacked on this one: malformed D-Bus signatures are accepted, a NaN signal reading breaks the serving-cell order,
3gpp-lac-citokens are not validated, and a JSON field named__proto__disappears. Those properties are added with each fix. Five tests in the full suite (workspace package versions, two flock tests, two credential fences) fail on main in my checkout as well and are unrelated.